// 定义中间件
const loginMiddleware = (req, res, next) => {
    if (!req.headers.authorization) {
        return res.send({ code: 4000, msg: "请先登录", data: null });
    }
    next();
};

module.exports = loginMiddleware;